# -*- coding: utf-8 -*-
'''
@author: Hugo
@file: main.py
@time: 2021/9/5 10:26
'''
from flask import Flask, make_response
import pillow_test

app = Flask(__name__)

data = []

@app.route('/')
def index():
    text,image = pillow_test.get_img()
    data.clear()
    data.append(text)
    print(data)
    res = make_response(image)
    res.content_type = "image/png"
    return res

if __name__ == '__main__':
    app.run()


